<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5320delta - what is new for perl v5.32.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5320delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5320delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5320delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5320delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5320delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5320delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5320delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5320delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5320delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5320delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5320delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5320delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5320delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5320delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5320delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5320delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5320delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5320delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5320delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5320delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5320delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5320delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5320delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5320delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5320delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5320delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5320delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5320delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5320delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5320delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5320delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5320delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5320delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5320delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5320delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5320delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5320delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5320delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5320delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5320delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5320delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5320delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5320delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5320delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5320delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5320delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5320delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5320delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5320delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5320delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5320delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5320delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5320delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5320delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5320delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5320delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5320delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5320delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5320delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5320delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5320delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5320delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5320delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5320delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5320delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5320delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5320delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5320delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5320delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5320delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5320delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5320delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5320delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5320delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5320delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5320delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5320delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5320delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5320delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5320delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5320delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5320delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5320delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5320delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5320delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5320delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5320delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5320delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5320delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5320delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5320delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5320delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5320delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5320delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5320delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5320delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5320delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5320delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5320delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5320delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5320delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5320delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5320delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5320delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5320delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5320delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5320delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5320delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5320delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5320delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5320delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5320delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5320delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5320delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5320delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5320delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5320delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5320delta.html">perl5320delta</a>
          <div id="more">
            (<a href="perl5320delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5320delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#The-isa-Operator">The isa Operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Unicode-13.0-is-supported">Unicode 13.0 is supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Chained-comparisons-capability">Chained comparisons capability</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#New-Unicode-properties-Identifier_Status-and-Identifier_Type-supported">New Unicode properties Identifier_Status and Identifier_Type supported</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#It-is-now-possible-to-write-qr/%5Cp%7BName=...%7D/,-or-qr!%5Cp%7Bna=/(SMILING%7CGRINNING)-FACE/%7D!">It is now possible to write qr/\p{Name=...}/, or qr!\p{na=/(SMILING|GRINNING) FACE/}!</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Improvement-of-POSIX::mblen(),-mbtowc,-and-wctomb">Improvement of POSIX::mblen(), mbtowc, and wctomb</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Alpha-assertions-are-no-longer-experimental">Alpha assertions are no longer experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Script-runs-are-no-longer-experimental">Script runs are no longer experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Feature-checks-are-now-faster">Feature checks are now faster</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Perl-is-now-developed-on-GitHub">Perl is now developed on GitHub</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Compiled-patterns-can-now-be-dumped-before-optimization">Compiled patterns can now be dumped before optimization</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Security">Security</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#%5BCVE-2020-10543%5D-Buffer-overflow-caused-by-a-crafted-regular-expression">[CVE-2020-10543] Buffer overflow caused by a crafted regular expression</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#%5BCVE-2020-10878%5D-Integer-overflow-via-malformed-bytecode-produced-by-a-crafted-regular-expression">[CVE-2020-10878] Integer overflow via malformed bytecode produced by a crafted regular expression</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#%5BCVE-2020-12723%5D-Buffer-overflow-caused-by-a-crafted-regular-expression">[CVE-2020-12723] Buffer overflow caused by a crafted regular expression</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Additional-Note">Additional Note</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Certain-pattern-matching-features-are-now-prohibited-in-compiling-Unicode-property-value-wildcard-subpatterns">Certain pattern matching features are now prohibited in compiling Unicode property value wildcard subpatterns</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Unused-functions-POSIX::mbstowcs-and-POSIX::wcstombs-are-removed">Unused functions POSIX::mbstowcs and POSIX::wcstombs are removed</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#A-bug-fix-for-(?%5B...%5D)-may-have-caused-some-patterns-to-no-longer-compile">A bug fix for (?[...]) may have caused some patterns to no longer compile</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#%5Cp%7Buser-defined%7D-properties-now-always-override-official-Unicode-ones">\p{user-defined} properties now always override official Unicode ones</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Modifiable-variables-are-no-longer-permitted-in-constants">Modifiable variables are no longer permitted in constants</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Use-of-vec-on-strings-with-code-points-above-0xFF-is-forbidden">Use of vec on strings with code points above 0xFF is forbidden</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators">Use of code points over 0xFF in string bitwise operators</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Sys::Hostname::hostname()-does-not-accept-arguments">Sys::Hostname::hostname() does not accept arguments</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Plain-%220%22-string-now-treated-as-a-number-for-range-operator">Plain &quot;0&quot; string now treated as a number for range operator</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#%5CK-now-disallowed-in-look-ahead-and-look-behind-assertions">\K now disallowed in look-ahead and look-behind assertions</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Removed-Modules-and-Pragmata">Removed Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perldebguts">perldebguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlapi">perlapi</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perldiag">perldiag</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlfunc">perlfunc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlguts">perlguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlhacktips">perlhacktips</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlintro">perlintro</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlipc">perlipc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlop">perlop</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlpod">perlpod</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlport">perlport</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlreref">perlreref</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlvar">perlvar</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlapi,-perlintern">perlapi, perlintern</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlxs">perlxs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#POSIX">POSIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Updating-of-links">Updating of links</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Diagnostics">Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#perlbug">perlbug</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#streamzip">streamzip</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Configure">Configure</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Testing">Testing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Discontinued-Platforms">Discontinued Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Internal-Changes">Internal Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Obituary">Obituary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#Give-Thanks">Give Thanks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5320delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5320delta.html#NAME">#</a>NAME</h1>

<p>perl5320delta - what is new for perl v5.32.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5320delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.30.0 release and the 5.32.0 release.</p>

<p>If you are upgrading from an earlier release such as 5.28.0, first read <a href="perl5300delta.html">perl5300delta</a>, which describes differences between 5.28.0 and 5.30.0.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5320delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="The-isa-Operator"><a class="permalink" href="perl5320delta.html#The-isa-Operator">#</a><a id="The"></a>The isa Operator</h2>

<p>A new experimental infix operator called <code>isa</code> tests whether a given object is an instance of a given class or a class derived from it:</p>

<pre><code>if( $obj isa Package::Name ) { ... }</code></pre>

<p>For more detail see <a href="perlop.html#Class-Instance-Operator">&quot;Class Instance Operator&quot; in perlop</a>.</p>

<h2 id="Unicode-13.0-is-supported"><a class="permalink" href="perl5320delta.html#Unicode-13.0-is-supported">#</a><a id="Unicode"></a>Unicode 13.0 is supported</h2>

<p>See <a href="https://www.unicode.org/versions/Unicode13.0.0/">https://www.unicode.org/versions/Unicode13.0.0/</a> for details.</p>

<h2 id="Chained-comparisons-capability"><a class="permalink" href="perl5320delta.html#Chained-comparisons-capability">#</a><a id="Chained"></a>Chained comparisons capability</h2>

<p>Some comparison operators, as their associativity, <i>chain</i> with some operators of the same precedence (but never with operators of different precedence).</p>

<pre><code>if ( $x &lt; $y &lt;= $z ) {...}</code></pre>

<p>behaves exactly like:</p>

<pre><code>if ( $x &lt; $y &amp;&amp; $y &lt;= $z ) {...}</code></pre>

<p>(assuming that <code>&quot;$y&quot;</code> is as simple a scalar as it looks.)</p>

<p>You can read more about this in <a href="perlop.html">perlop</a> under <a href="perlop.html#Operator-Precedence-and-Associativity">&quot;Operator Precedence and Associativity&quot; in perlop</a>.</p>

<h2 id="New-Unicode-properties-Identifier_Status-and-Identifier_Type-supported"><a class="permalink" href="perl5320delta.html#New-Unicode-properties-Identifier_Status-and-Identifier_Type-supported">#</a><a id="New"></a>New Unicode properties <code>Identifier_Status</code> and <code>Identifier_Type</code> supported</h2>

<p>Unicode has revised its regular expression requirements: <a href="https://www.unicode.org/reports/tr18/tr18-21.html">https://www.unicode.org/reports/tr18/tr18-21.html</a>. As part of that they are wanting more properties to be exposed, ones that aren&#39;t part of the strict UCD (Unicode character database). These two are used for examining inputs for security purposes. Details on their usage is at <a href="https://www.unicode.org/reports/tr39/">https://www.unicode.org/reports/tr39/</a>.</p>

<h2 id="It-is-now-possible-to-write-qr/\p{Name=...}/,-or-qr!\p{na=/(SMILING|GRINNING)-FACE/}!"><a class="permalink" href="perl5320delta.html#It-is-now-possible-to-write-qr/%5Cp%7BName=...%7D/,-or-qr!%5Cp%7Bna=/(SMILING%7CGRINNING)-FACE/%7D!">#</a><a id="It"></a><a id="It-is-now-possible-to-write-qr-p-Name-...-or-qr-p-na-SMILING-GRINNING-FACE"></a>It is now possible to write <code>qr/\p{Name=...}/</code>, or <code>qr!\p{na=/(SMILING|GRINNING) FACE/}!</code></h2>

<p>The Unicode Name property is now accessible in regular expression patterns, as an alternative to <code>\N{...}</code>. A comparison of the two methods is given in <a href="perlunicode.html#Comparison-of-%5CN%7B...%7D-and-%5Cp%7Bname%3D...%7D">&quot;Comparison of \N{...} and \p{name=...}&quot; in perlunicode</a>.</p>

<p>The second example above shows that wildcard subpatterns are also usable in this property. See <a href="perlunicode.html#Wildcards-in-Property-Values">&quot;Wildcards in Property Values&quot; in perlunicode</a>.</p>

<h2 id="Improvement-of-POSIX::mblen(),-mbtowc,-and-wctomb"><a class="permalink" href="perl5320delta.html#Improvement-of-POSIX::mblen(),-mbtowc,-and-wctomb">#</a><a id="Improvement"></a><a id="Improvement-of-POSIX::mblen-mbtowc-and-wctomb"></a>Improvement of <code>POSIX::mblen()</code>, <code>mbtowc</code>, and <code>wctomb</code></h2>

<p>The <code>POSIX::mblen()</code>, <code>mbtowc</code>, and <code>wctomb</code> functions now work on shift state locales and are thread-safe on C99 and above compilers when executed on a platform that has locale thread-safety; the length parameters are now optional.</p>

<p>These functions are always executed under the current C language locale. (See <a href="perllocale.html">perllocale</a>.) Most locales are stateless, but a few, notably the very rarely encountered ISO 2022, maintain a state between calls to these functions. Previously the state was cleared on every call, but now the state is not reset unless the appropriate parameter is <code>undef</code>.</p>

<p>On threaded perls, the C99 functions <a href="http://man.he.net/man3/mbrlen">mbrlen(3)</a>, <a href="http://man.he.net/man3/mbrtowc">mbrtowc(3)</a>, and <a href="http://man.he.net/man3/wcrtomb">wcrtomb(3)</a>, when available, are substituted for the plain functions. This makes these functions thread-safe when executing on a locale thread-safe platform.</p>

<p>The string length parameters in <code>mblen</code> and <code>mbtowc</code> are now optional; useful only if you wish to restrict the length parsed in the source string to less than the actual length.</p>

<h2 id="Alpha-assertions-are-no-longer-experimental"><a class="permalink" href="perl5320delta.html#Alpha-assertions-are-no-longer-experimental">#</a><a id="Alpha"></a>Alpha assertions are no longer experimental</h2>

<p>See <a href="perlre.html#%28%2Apla%3Apattern%29">&quot;(*pla:pattern)&quot; in perlre</a>, <a href="perlre.html#%28%2Aplb%3Apattern%29">&quot;(*plb:pattern)&quot; in perlre</a>, <a href="perlre.html#%28%2Anla%3Apattern%29">&quot;(*nla:pattern)&quot; in perlre</a>&gt;, and <a href="perlre.html#%28%2Anlb%3Apattern%29">&quot;(*nlb:pattern)&quot; in perlre</a>. Use of these no longer generates a warning; existing code that disables the warning category <code>experimental::alpha_assertions</code> will continue to work without any changes needed. Enabling the category has no effect.</p>

<h2 id="Script-runs-are-no-longer-experimental"><a class="permalink" href="perl5320delta.html#Script-runs-are-no-longer-experimental">#</a><a id="Script"></a>Script runs are no longer experimental</h2>

<p>See <a href="perlre.html#Script-Runs">&quot;Script Runs&quot; in perlre</a>. Use of these no longer generates a warning; existing code that disables the warning category <code>experimental::script_run</code> will continue to work without any changes needed. Enabling the category has no effect.</p>

<h2 id="Feature-checks-are-now-faster"><a class="permalink" href="perl5320delta.html#Feature-checks-are-now-faster">#</a><a id="Feature"></a>Feature checks are now faster</h2>

<p>Previously feature checks in the parser required a hash lookup when features were set outside of a feature bundle, this has been optimized to a bit mask check. [<a href="https://github.com/Perl/perl5/issues/17229">GH #17229</a>]</p>

<h2 id="Perl-is-now-developed-on-GitHub"><a class="permalink" href="perl5320delta.html#Perl-is-now-developed-on-GitHub">#</a><a id="Perl"></a>Perl is now developed on GitHub</h2>

<p>Perl is now developed on GitHub. You can find us at <a href="https://github.com/Perl/perl5">https://github.com/Perl/perl5</a>.</p>

<p>Non-security bugs should now be reported via GitHub. Security issues should continue to be reported as documented in <a href="perlsec.html">perlsec</a>.</p>

<h2 id="Compiled-patterns-can-now-be-dumped-before-optimization"><a class="permalink" href="perl5320delta.html#Compiled-patterns-can-now-be-dumped-before-optimization">#</a><a id="Compiled"></a>Compiled patterns can now be dumped before optimization</h2>

<p>This is primarily useful for tracking down bugs in the regular expression compiler. This dump happens on <code>-DDEBUGGING</code> perls, if you specify <code>-Drv</code> on the command line; or on any perl if the pattern is compiled within the scope of <span style="white-space: nowrap;"><code>use re qw(Debug DUMP_PRE_OPTIMIZE)</code></span> or <span style="white-space: nowrap;"><code>use re qw(Debug COMPILE EXTRA)</code></span>. (All but the second case display other information as well.)</p>

<h1 id="Security"><a class="permalink" href="perl5320delta.html#Security">#</a>Security</h1>

<h2 id="[CVE-2020-10543]-Buffer-overflow-caused-by-a-crafted-regular-expression"><a class="permalink" href="perl5320delta.html#%5BCVE-2020-10543%5D-Buffer-overflow-caused-by-a-crafted-regular-expression">#</a><a id="CVE-2020-10543-Buffer-overflow-caused-by-a-crafted-regular-expression"></a>[CVE-2020-10543] Buffer overflow caused by a crafted regular expression</h2>

<p>A signed <code>size_t</code> integer overflow in the storage space calculations for nested regular expression quantifiers could cause a heap buffer overflow in Perl&#39;s regular expression compiler that overwrites memory allocated after the regular expression storage space with attacker supplied data.</p>

<p>The target system needs a sufficient amount of memory to allocate partial expansions of the nested quantifiers prior to the overflow occurring. This requirement is unlikely to be met on 64-bit systems.</p>

<p>Discovered by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup).</p>

<h2 id="[CVE-2020-10878]-Integer-overflow-via-malformed-bytecode-produced-by-a-crafted-regular-expression"><a class="permalink" href="perl5320delta.html#%5BCVE-2020-10878%5D-Integer-overflow-via-malformed-bytecode-produced-by-a-crafted-regular-expression">#</a><a id="CVE-2020-10878-Integer-overflow-via-malformed-bytecode-produced-by-a-crafted-regular-expression"></a>[CVE-2020-10878] Integer overflow via malformed bytecode produced by a crafted regular expression</h2>

<p>Integer overflows in the calculation of offsets between instructions for the regular expression engine could cause corruption of the intermediate language state of a compiled regular expression. An attacker could abuse this behaviour to insert instructions into the compiled form of a Perl regular expression.</p>

<p>Discovered by: Hugo van der Sanden and Slaven Rezic.</p>

<h2 id="[CVE-2020-12723]-Buffer-overflow-caused-by-a-crafted-regular-expression"><a class="permalink" href="perl5320delta.html#%5BCVE-2020-12723%5D-Buffer-overflow-caused-by-a-crafted-regular-expression">#</a><a id="CVE-2020-12723-Buffer-overflow-caused-by-a-crafted-regular-expression"></a>[CVE-2020-12723] Buffer overflow caused by a crafted regular expression</h2>

<p>Recursive calls to <code>S_study_chunk()</code> by Perl&#39;s regular expression compiler to optimize the intermediate language representation of a regular expression could cause corruption of the intermediate language state of a compiled regular expression.</p>

<p>Discovered by: Sergey Aleynikov.</p>

<h2 id="Additional-Note"><a class="permalink" href="perl5320delta.html#Additional-Note">#</a><a id="Additional"></a>Additional Note</h2>

<p>An application written in Perl would only be vulnerable to any of the above flaws if it evaluates regular expressions supplied by the attacker. Evaluating regular expressions in this fashion is known to be dangerous since the regular expression engine does not protect against denial of service attacks in this usage scenario.</p>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5320delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="Certain-pattern-matching-features-are-now-prohibited-in-compiling-Unicode-property-value-wildcard-subpatterns"><a class="permalink" href="perl5320delta.html#Certain-pattern-matching-features-are-now-prohibited-in-compiling-Unicode-property-value-wildcard-subpatterns">#</a><a id="Certain"></a>Certain pattern matching features are now prohibited in compiling Unicode property value wildcard subpatterns</h2>

<p>These few features are either inappropriate or interfere with the algorithm used to accomplish this task. The complete list is in <a href="perlunicode.html#Wildcards-in-Property-Values">&quot;Wildcards in Property Values&quot; in perlunicode</a>.</p>

<h2 id="Unused-functions-POSIX::mbstowcs-and-POSIX::wcstombs-are-removed"><a class="permalink" href="perl5320delta.html#Unused-functions-POSIX::mbstowcs-and-POSIX::wcstombs-are-removed">#</a><a id="Unused"></a>Unused functions <code>POSIX::mbstowcs</code> and <code>POSIX::wcstombs</code> are removed</h2>

<p>These functions could never have worked due to a defective interface specification. There is clearly no demand for them, given that no one has ever complained in the many years the functions were claimed to be available, hence so-called &quot;support&quot; for them is now dropped.</p>

<h2 id="A-bug-fix-for-(?[...])-may-have-caused-some-patterns-to-no-longer-compile"><a class="permalink" href="perl5320delta.html#A-bug-fix-for-(?%5B...%5D)-may-have-caused-some-patterns-to-no-longer-compile">#</a><a id="A"></a><a id="A-bug-fix-for-...-may-have-caused-some-patterns-to-no-longer-compile"></a>A bug fix for <code>(?[...])</code> may have caused some patterns to no longer compile</h2>

<p>See <a href="perl5320delta.html#Selected-Bug-Fixes">&quot;Selected Bug Fixes&quot;</a>. The heuristics previously used may have let some constructs compile (perhaps not with the programmer&#39;s intended effect) that should have been errors. None are known, but it is possible that some erroneous constructs no longer compile.</p>

<h2 id="\p{user-defined}-properties-now-always-override-official-Unicode-ones"><a class="permalink" href="perl5320delta.html#%5Cp%7Buser-defined%7D-properties-now-always-override-official-Unicode-ones">#</a><a id="p-user-defined-properties-now-always-override-official-Unicode-ones"></a><code>\p{<i>user-defined</i>}</code> properties now always override official Unicode ones</h2>

<p>Previously, if and only if a user-defined property was declared prior to the compilation of the regular expression pattern that contains it, its definition was used instead of any official Unicode property with the same name. Now, it always overrides the official property. This change could break existing code that relied (likely unwittingly) on the previous behavior. Without this fix, if Unicode released a new version with a new property that happens to have the same name as the one you had long been using, your program would break when you upgraded to a perl that used that new Unicode version. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>. [<a href="https://github.com/Perl/perl5/issues/17205">GH #17205</a>]</p>

<h2 id="Modifiable-variables-are-no-longer-permitted-in-constants"><a class="permalink" href="perl5320delta.html#Modifiable-variables-are-no-longer-permitted-in-constants">#</a><a id="Modifiable"></a>Modifiable variables are no longer permitted in constants</h2>

<p>Code like:</p>

<pre><code>my $var;
$sub = sub () { $var };</code></pre>

<p>where <code>$var</code> is referenced elsewhere in some sort of modifiable context now produces an exception when the sub is defined.</p>

<p>This error can be avoided by adding a return to the sub definition:</p>

<pre><code>$sub = sub () { return $var };</code></pre>

<p>This has been deprecated since Perl 5.22. <a href="https://github.com/Perl/perl5/issues/17020">[GH #17020]</a></p>

<h2 id="Use-of-vec-on-strings-with-code-points-above-0xFF-is-forbidden"><a class="permalink" href="perl5320delta.html#Use-of-vec-on-strings-with-code-points-above-0xFF-is-forbidden">#</a><a id="Use"></a>Use of <a href="perlfunc.html#vec-EXPR%2COFFSET%2CBITS"><code>vec</code></a> on strings with code points above 0xFF is forbidden</h2>

<p>Such strings are represented internally in UTF-8, and <code>vec</code> is a bit-oriented operation that will likely give unexpected results on those strings. This was deprecated in perl 5.28.0.</p>

<h2 id="Use-of-code-points-over-0xFF-in-string-bitwise-operators"><a class="permalink" href="perl5320delta.html#Use-of-code-points-over-0xFF-in-string-bitwise-operators">#</a><a id="Use1"></a>Use of code points over 0xFF in string bitwise operators</h2>

<p>Some uses of these were already illegal after a previous deprecation cycle. The remaining uses are now prohibited, having been deprecated in perl 5.28.0. See <a href="perldeprecation.html">perldeprecation</a>.</p>

<h2 id="Sys::Hostname::hostname()-does-not-accept-arguments"><a class="permalink" href="perl5320delta.html#Sys::Hostname::hostname()-does-not-accept-arguments">#</a><a id="Sys"></a><a id="Sys::Hostname::hostname-does-not-accept-arguments"></a><code>Sys::Hostname::hostname()</code> does not accept arguments</h2>

<p>This usage was deprecated in perl 5.28.0 and is now fatal.</p>

<h2 id="Plain-&quot;0&quot;-string-now-treated-as-a-number-for-range-operator"><a class="permalink" href="perl5320delta.html#Plain-%220%22-string-now-treated-as-a-number-for-range-operator">#</a><a id="Plain"></a><a id="Plain-0-string-now-treated-as-a-number-for-range-operator"></a>Plain &quot;0&quot; string now treated as a number for range operator</h2>

<p>Previously a range <code>&quot;0&quot; .. &quot;-1&quot;</code> would produce a range of numeric strings from &quot;0&quot; through &quot;99&quot;; this now produces an empty list, just as <code>0 .. -1</code> does. This also means that <code>&quot;0&quot; .. &quot;9&quot;</code> now produces a list of integers, where previously it would produce a list of strings.</p>

<p>This was due to a special case that treated strings starting with &quot;0&quot; as strings so ranges like <code>&quot;00&quot; .. &quot;03&quot;</code> produced <code>&quot;00&quot;, &quot;01&quot;, &quot;02&quot;, &quot;03&quot;</code>, but didn&#39;t specially handle the string <code>&quot;0&quot;</code>. <a href="https://github.com/Perl/perl5/issues/16770">[GH #16770]</a></p>

<h2 id="\K-now-disallowed-in-look-ahead-and-look-behind-assertions"><a class="permalink" href="perl5320delta.html#%5CK-now-disallowed-in-look-ahead-and-look-behind-assertions">#</a><a id="K-now-disallowed-in-look-ahead-and-look-behind-assertions"></a><code>\K</code> now disallowed in look-ahead and look-behind assertions</h2>

<p>This was disallowed because it causes unexpected behaviour, and no-one could define what the desired behaviour should be. <a href="https://github.com/Perl/perl5/issues/14638">[GH #14638]</a></p>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5320delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p><code>my_strnlen</code> has been sped up for systems that don&#39;t have their own <code>strnlen</code> implementation.</p>

</li>
<li><p><code>grok_bin_oct_hex</code> (and so, <code>grok_bin</code>, <code>grok_oct</code>, and <code>grok_hex</code>) have been sped up.</p>

</li>
<li><p><code>grok_number_flags</code> has been sped up.</p>

</li>
<li><p><code>sort</code> is now noticeably faster in cases such as <code>sort {$a &lt;=&gt; $b}</code> or <code>sort {$b &lt;=&gt; $a}</code>. [<a href="https://github.com/Perl/perl5/pull/17608">GH #17608</a>]</p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5320delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="perl5320delta.html#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2>

<ul>

<li><p><a href="./Archive::Tar.html">Archive::Tar</a> has been upgraded from version 2.32 to 2.36.</p>

</li>
<li><p><a href="autodie.html">autodie</a> has been upgraded from version 2.29 to 2.32.</p>

</li>
<li><p><a href="B.html">B</a> has been upgraded from version 1.76 to 1.80.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded from version 1.49 to 1.54.</p>

</li>
<li><p><a href="Benchmark.html">Benchmark</a> has been upgraded from version 1.22 to 1.23.</p>

</li>
<li><p><a href="charnames.html">charnames</a> has been upgraded from version 1.45 to 1.48.</p>

</li>
<li><p><a href="./Class::Struct.html">Class::Struct</a> has been upgraded from version 0.65 to 0.66.</p>

</li>
<li><p><a href="./Compress::Raw::Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.084 to 2.093.</p>

</li>
<li><p><a href="./Compress::Raw::Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.084 to 2.093.</p>

</li>
<li><p><a href="CPAN.html">CPAN</a> has been upgraded from version 2.22 to 2.27.</p>

</li>
<li><p><a href="DB_File.html">DB_File</a> has been upgraded from version 1.843 to 1.853.</p>

</li>
<li><p><a href="./Devel::PPPort.html">Devel::PPPort</a> has been upgraded from version 3.52 to 3.57.</p>

<p>The test files generated on Win32 are now identical to when they are generated on POSIX-like systems.</p>

</li>
<li><p><a href="diagnostics.html">diagnostics</a> has been upgraded from version 1.36 to 1.37.</p>

</li>
<li><p><a href="./Digest::MD5.html">Digest::MD5</a> has been upgraded from version 2.55 to 2.55_01.</p>

</li>
<li><p><a href="Dumpvalue.html">Dumpvalue</a> has been upgraded from version 1.18 to 1.21.</p>

<p>Previously, when dumping elements of an array and encountering an undefined value, the string printed would have been <code>empty array</code>. This has been changed to what was apparently originally intended: <code>empty slot</code>.</p>

</li>
<li><p><a href="DynaLoader.html">DynaLoader</a> has been upgraded from version 1.45 to 1.47.</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded from version 3.01 to 3.06.</p>

</li>
<li><p><a href="encoding.html">encoding</a> has been upgraded from version 2.22 to 3.00.</p>

</li>
<li><p><a href="English.html">English</a> has been upgraded from version 1.10 to 1.11.</p>

</li>
<li><p><a href="Exporter.html">Exporter</a> has been upgraded from version 5.73 to 5.74.</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.280231 to 0.280234.</p>

</li>
<li><p><a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 7.34 to 7.44.</p>

</li>
<li><p><a href="feature.html">feature</a> has been upgraded from version 1.54 to 1.58.</p>

<p>A new <code>indirect</code> feature has been added, which is enabled by default but allows turning off <a href="perlobj.html#Indirect-Object-Syntax">indirect object syntax</a>.</p>

</li>
<li><p><a href="./File::Find.html">File::Find</a> has been upgraded from version 1.36 to 1.37.</p>

<p>On Win32, the tests no longer require either a file in the drive root directory, or a writable root directory.</p>

</li>
<li><p><a href="./File::Glob.html">File::Glob</a> has been upgraded from version 1.32 to 1.33.</p>

</li>
<li><p><a href="./File::stat.html">File::stat</a> has been upgraded from version 1.08 to 1.09.</p>

</li>
<li><p><a href="./Filter::Simple.html">Filter::Simple</a> has been upgraded from version 0.95 to 0.96.</p>

</li>
<li><p><a href="./Getopt::Long.html">Getopt::Long</a> has been upgraded from version 2.5 to 2.51.</p>

</li>
<li><p><a href="./Hash::Util.html">Hash::Util</a> has been upgraded from version 0.22 to 0.23.</p>

<p>The Synopsis has been updated as the example code stopped working with newer perls. [<a href="https://github.com/Perl/perl5/issues/17399">GH #17399</a>]</p>

</li>
<li><p><a href="./I18N::Langinfo.html">I18N::Langinfo</a> has been upgraded from version 0.18 to 0.19.</p>

</li>
<li><p><a href="./I18N::LangTags.html">I18N::LangTags</a> has been upgraded from version 0.43 to 0.44.</p>

<p>Document the <code>IGNORE_WIN32_LOCALE</code> environment variable.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded from version 1.40 to 1.43.</p>

<p><a href="./IO::Socket.html">IO::Socket</a> no longer caches a zero protocol value, since this indicates that the implementation will select a protocol. This means that on platforms that don&#39;t implement <code>SO_PROTOCOL</code> for a given socket type the protocol method may return <code>undef</code>.</p>

<p>The supplied <i>TO</i> is now always honoured on calls to the <code>send()</code> method. <a href="https://github.com/Perl/perl5/issues/16891">[GH #16891]</a></p>

</li>
<li><p>IO-Compress has been upgraded from version 2.084 to 2.093.</p>

</li>
<li><p><a href="./IPC::Cmd.html">IPC::Cmd</a> has been upgraded from version 1.02 to 1.04.</p>

</li>
<li><p><a href="./IPC::Open3.html">IPC::Open3</a> has been upgraded from version 1.20 to 1.21.</p>

</li>
<li><p><a href="./JSON::PP.html">JSON::PP</a> has been upgraded from version 4.02 to 4.04.</p>

</li>
<li><p><a href="./Math::BigInt.html">Math::BigInt</a> has been upgraded from version 1.999816 to 1.999818.</p>

</li>
<li><p><a href="./Math::BigInt::FastCalc.html">Math::BigInt::FastCalc</a> has been upgraded from version 0.5008 to 0.5009.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded from version 5.20190522 to 5.20200620.</p>

</li>
<li><p><a href="./Module::Load::Conditional.html">Module::Load::Conditional</a> has been upgraded from version 0.68 to 0.70.</p>

</li>
<li><p><a href="./Module::Metadata.html">Module::Metadata</a> has been upgraded from version 1.000036 to 1.000037.</p>

</li>
<li><p><a href="mro.html">mro</a> has been upgraded from version 1.22 to 1.23.</p>

</li>
<li><p><a href="./Net::Ping.html">Net::Ping</a> has been upgraded from version 2.71 to 2.72.</p>

</li>
<li><p><a href="Opcode.html">Opcode</a> has been upgraded from version 1.43 to 1.47.</p>

</li>
<li><p><a href="open.html">open</a> has been upgraded from version 1.11 to 1.12.</p>

</li>
<li><p><a href="overload.html">overload</a> has been upgraded from version 1.30 to 1.31.</p>

</li>
<li><p><a href="parent.html">parent</a> has been upgraded from version 0.237 to 0.238.</p>

</li>
<li><p><a href="perlfaq.html">perlfaq</a> has been upgraded from version 5.20190126 to 5.20200523.</p>

</li>
<li><p><a href="PerlIO.html">PerlIO</a> has been upgraded from version 1.10 to 1.11.</p>

</li>
<li><p><a href="./PerlIO::encoding.html">PerlIO::encoding</a> has been upgraded from version 0.27 to 0.28.</p>

</li>
<li><p><a href="./PerlIO::via.html">PerlIO::via</a> has been upgraded from version 0.17 to 0.18.</p>

</li>
<li><p><a href="./Pod::Html.html">Pod::Html</a> has been upgraded from version 1.24 to 1.25.</p>

</li>
<li><p><a href="./Pod::Simple.html">Pod::Simple</a> has been upgraded from version 3.35 to 3.40.</p>

</li>
<li><p><a href="https://perldoc.perl.org/5.35.0/podlators">podlators</a> has been upgraded from version 4.11 to 4.14.</p>

</li>
<li><p><a href="POSIX.html">POSIX</a> has been upgraded from version 1.88 to 1.94.</p>

</li>
<li><p><a href="re.html">re</a> has been upgraded from version 0.37 to 0.40.</p>

</li>
<li><p><a href="Safe.html">Safe</a> has been upgraded from version 2.40 to 2.41.</p>

</li>
<li><p><a href="./Scalar::Util.html">Scalar::Util</a> has been upgraded from version 1.50 to 1.55.</p>

</li>
<li><p><a href="SelfLoader.html">SelfLoader</a> has been upgraded from version 1.25 to 1.26.</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded from version 2.027 to 2.029.</p>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded from version 3.15 to 3.21.</p>

<p>Use of <code>note()</code> from <a href="./Test::More.html">Test::More</a> is now optional in tests. This works around a circular dependency with <a href="./Test::More.html">Test::More</a> when installing on very old perls from CPAN.</p>

<p>Vstring magic strings over 2GB are now disallowed.</p>

<p>Regular expressions objects weren&#39;t properly counted for object id purposes on retrieve. This would corrupt the resulting structure, or cause a runtime error in some cases. <a href="https://github.com/Perl/perl5/issues/17037">[GH #17037]</a></p>

</li>
<li><p><a href="./Sys::Hostname.html">Sys::Hostname</a> has been upgraded from version 1.22 to 1.23.</p>

</li>
<li><p><a href="./Sys::Syslog.html">Sys::Syslog</a> has been upgraded from version 0.35 to 0.36.</p>

</li>
<li><p><a href="./Term::ANSIColor.html">Term::ANSIColor</a> has been upgraded from version 4.06 to 5.01.</p>

</li>
<li><p><a href="./Test::Simple.html">Test::Simple</a> has been upgraded from version 1.302162 to 1.302175.</p>

</li>
<li><p><a href="Thread.html">Thread</a> has been upgraded from version 3.04 to 3.05.</p>

</li>
<li><p><a href="./Thread::Queue.html">Thread::Queue</a> has been upgraded from version 3.13 to 3.14.</p>

</li>
<li><p><a href="threads.html">threads</a> has been upgraded from version 2.22 to 2.25.</p>

</li>
<li><p><a href="./threads::shared.html">threads::shared</a> has been upgraded from version 1.60 to 1.61.</p>

</li>
<li><p><a href="./Tie::File.html">Tie::File</a> has been upgraded from version 1.02 to 1.06.</p>

</li>
<li><p><a href="./Tie::Hash::NamedCapture.html">Tie::Hash::NamedCapture</a> has been upgraded from version 0.10 to 0.13.</p>

</li>
<li><p><a href="./Tie::Scalar.html">Tie::Scalar</a> has been upgraded from version 1.04 to 1.05.</p>

</li>
<li><p><a href="./Tie::StdHandle.html">Tie::StdHandle</a> has been upgraded from version 4.5 to 4.6.</p>

</li>
<li><p><a href="./Time::HiRes.html">Time::HiRes</a> has been upgraded from version 1.9760 to 1.9764.</p>

<p>Removed obsolete code such as support for pre-5.6 perl and classic MacOS. <a href="https://github.com/Perl/perl5/issues/17096">[GH #17096]</a></p>

</li>
<li><p><a href="./Time::Piece.html">Time::Piece</a> has been upgraded from version 1.33 to 1.3401.</p>

</li>
<li><p><a href="./Unicode::Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.26 to 1.27.</p>

</li>
<li><p><a href="./Unicode::UCD.html">Unicode::UCD</a> has been upgraded from version 0.72 to 0.75.</p>

</li>
<li><p><a href="./VMS::Stdio.html">VMS::Stdio</a> has been upgraded from version 2.44 to 2.45.</p>

</li>
<li><p><a href="warnings.html">warnings</a> has been upgraded from version 1.44 to 1.47.</p>

</li>
<li><p><a href="Win32.html">Win32</a> has been upgraded from version 0.52 to 0.53.</p>

</li>
<li><p><a href="./Win32API::File.html">Win32API::File</a> has been upgraded from version 0.1203 to 0.1203_01.</p>

</li>
<li><p><a href="./XS::APItest.html">XS::APItest</a> has been upgraded from version 1.00 to 1.09.</p>

</li>
</ul>

<h2 id="Removed-Modules-and-Pragmata"><a class="permalink" href="perl5320delta.html#Removed-Modules-and-Pragmata">#</a><a id="Removed"></a>Removed Modules and Pragmata</h2>

<ul>

<li><p>Pod::Parser has been removed from the core distribution. It still is available for download from CPAN. This resolves [<a href="https://github.com/Perl/perl5/issues/13194">#13194</a>].</p>

</li>
</ul>

<h1 id="Documentation"><a class="permalink" href="perl5320delta.html#Documentation">#</a>Documentation</h1>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5320delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes"></a>Changes to Existing Documentation</h2>

<p>We have attempted to update the documentation to reflect the changes listed in this document. If you find any we have missed, open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

<p>Additionally, the following selected changes have been made:</p>

<h3 id="perldebguts"><a class="permalink" href="perl5320delta.html#perldebguts">#</a><a href="perldebguts.html">perldebguts</a></h3>

<ul>

<li><p>Simplify a few regnode definitions</p>

<p>Update <code>BOUND</code> and <code>NBOUND</code> definitions.</p>

</li>
<li><p>Add ANYOFHs regnode</p>

<p>This node is like <code>ANYOFHb</code>, but is used when more than one leading byte is the same in all the matched code points.</p>

<p><code>ANYOFHb</code> is used to avoid having to convert from UTF-8 to code point for something that won&#39;t match. It checks that the first byte in the UTF-8 encoded target is the desired one, thus ruling out most of the possible code points.</p>

</li>
</ul>

<h3 id="perlapi"><a class="permalink" href="perl5320delta.html#perlapi">#</a><a href="perlapi.html">perlapi</a></h3>

<ul>

<li><p><code>sv_2pvbyte</code> updated to mention it will croak if the SV cannot be downgraded.</p>

</li>
<li><p><code>sv_setpvn</code> updated to mention that the UTF-8 flag will not be changed by this function, and a terminating NUL byte is guaranteed.</p>

</li>
<li><p>Documentation for <code>PL_phase</code> has been added.</p>

</li>
<li><p>The documentation for <code>grok_bin</code>, <code>grok_oct</code>, and <code>grok_hex</code> has been updated and clarified.</p>

</li>
</ul>

<h3 id="perldiag"><a class="permalink" href="perl5320delta.html#perldiag">#</a><a href="perldiag.html">perldiag</a></h3>

<ul>

<li><p>Add documentation for experimental &#39;isa&#39; operator</p>

<p>(S experimental::isa) This warning is emitted if you use the (<code>isa</code>) operator. This operator is currently experimental and its behaviour may change in future releases of Perl.</p>

</li>
</ul>

<h3 id="perlfunc"><a class="permalink" href="perl5320delta.html#perlfunc">#</a><a href="perlfunc.html">perlfunc</a></h3>

<dl>

<dt id="caller"><a class="permalink" href="perl5320delta.html#caller">#</a><code>caller</code></dt>
<dd>

<p>Like <a href="perl5320delta.html#__FILE__"><code>__FILE__</code></a> and <a href="perl5320delta.html#__LINE__"><code>__LINE__</code></a>, the filename and line number returned here may be altered by the mechanism described at <a href="perlsyn.html#Plain-Old-Comments-%28Not%21%29">&quot;Plain Old Comments (Not!)&quot; in perlsyn</a>.</p>

</dd>
<dt id="__FILE__"><a class="permalink" href="perl5320delta.html#__FILE__">#</a><a id="FILE__"></a><code>__FILE__</code></dt>
<dd>

<p>It can be altered by the mechanism described at <a href="perlsyn.html#Plain-Old-Comments-%28Not%21%29">&quot;Plain Old Comments (Not!)&quot; in perlsyn</a>.</p>

</dd>
<dt id="__LINE__"><a class="permalink" href="perl5320delta.html#__LINE__">#</a><a id="LINE__"></a><code>__LINE__</code></dt>
<dd>

<p>It can be altered by the mechanism described at <a href="perlsyn.html#Plain-Old-Comments-%28Not%21%29">&quot;Plain Old Comments (Not!)&quot; in perlsyn</a>.</p>

</dd>
<dt id="return"><a class="permalink" href="perl5320delta.html#return">#</a><code>return</code></dt>
<dd>

<p>Now mentions that you cannot return from <code>do BLOCK</code>.</p>

</dd>
<dt id="open"><a class="permalink" href="perl5320delta.html#open">#</a><code>open</code></dt>
<dd>

<p>The <code>open()</code> section had been renovated significantly.</p>

</dd>
</dl>

<h3 id="perlguts"><a class="permalink" href="perl5320delta.html#perlguts">#</a><a href="perlguts.html">perlguts</a></h3>

<ul>

<li><p>No longer suggesting using perl&#39;s <code>malloc</code>. Modern system <code>malloc</code> is assumed to be much better than perl&#39;s implementation now.</p>

</li>
<li><p>Documentation about <i>embed.fnc</i> flags has been removed. <i>embed.fnc</i> now has sufficient comments within it. Anyone changing that file will see those comments first, so entries here are now redundant.</p>

</li>
<li><p>Updated documentation for <code>UTF8f</code></p>

</li>
<li><p>Added missing <code>=for apidoc</code> lines</p>

</li>
</ul>

<h3 id="perlhacktips"><a class="permalink" href="perl5320delta.html#perlhacktips">#</a><a href="perlhacktips.html">perlhacktips</a></h3>

<ul>

<li><p>The differences between Perl strings and C strings are now detailed.</p>

</li>
</ul>

<h3 id="perlintro"><a class="permalink" href="perl5320delta.html#perlintro">#</a><a href="perlintro.html">perlintro</a></h3>

<ul>

<li><p>The documentation for the repetition operator <code>x</code> have been clarified. [<a href="https://github.com/Perl/perl5/issues/17335">GH #17335</a>]</p>

</li>
</ul>

<h3 id="perlipc"><a class="permalink" href="perl5320delta.html#perlipc">#</a><a href="perlipc.html">perlipc</a></h3>

<ul>

<li><p>The documentation surrounding <code>open</code> and handle usage has been modernized to prefer 3-arg open and lexical variables instead of barewords.</p>

</li>
<li><p>Various updates and fixes including making all examples strict-safe and replacing <code>-w</code> with <code>use warnings</code>.</p>

</li>
</ul>

<h3 id="perlop"><a class="permalink" href="perl5320delta.html#perlop">#</a><a href="perlop.html">perlop</a></h3>

<ul>

<li><p>&#39;isa&#39; operator is experimental</p>

<p>This is an experimental feature and is available when enabled by <code>use feature &#39;isa&#39;</code>. It emits a warning in the <code>experimental::isa</code> category.</p>

</li>
</ul>

<h3 id="perlpod"><a class="permalink" href="perl5320delta.html#perlpod">#</a><a href="perlpod.html">perlpod</a></h3>

<ul>

<li><p>Details of the various stacks within the perl interpreter are now explained here.</p>

</li>
<li><p>Advice has been added regarding the usage of <code>Z&lt;&gt;</code>.</p>

</li>
</ul>

<h3 id="perlport"><a class="permalink" href="perl5320delta.html#perlport">#</a><a href="perlport.html">perlport</a></h3>

<ul>

<li><p>Update <code>timegm</code> example to use the correct year format <i>1970</i> instead of <i>70</i>. [<a href="https://github.com/Perl/perl5/issues/16431">GH #16431</a>]</p>

</li>
</ul>

<h3 id="perlreref"><a class="permalink" href="perl5320delta.html#perlreref">#</a><a href="perlreref.html">perlreref</a></h3>

<ul>

<li><p>Fix some typos.</p>

</li>
</ul>

<h3 id="perlvar"><a class="permalink" href="perl5320delta.html#perlvar">#</a><a href="perlvar.html">perlvar</a></h3>

<ul>

<li><p>Now recommends stringifying <code>$]</code> and comparing it numerically.</p>

</li>
</ul>

<h3 id="perlapi,-perlintern"><a class="permalink" href="perl5320delta.html#perlapi,-perlintern">#</a><a id="perlapi1"></a><a id="perlapi-perlintern"></a><a href="perlapi.html">perlapi</a>, <a href="perlintern.html">perlintern</a></h3>

<ul>

<li><p>Documentation has been added for several functions that were lacking it before.</p>

</li>
</ul>

<h3 id="perlxs"><a class="permalink" href="perl5320delta.html#perlxs">#</a><a href="perlxs.html">perlxs</a></h3>

<ul>

<li><p>Suggest using <code>libffi</code> for simple library bindings via CPAN modules like <a href="./FFI::Platypus.html">FFI::Platypus</a> or <a href="./FFI::Raw.html">FFI::Raw</a>.</p>

</li>
</ul>

<h3 id="POSIX"><a class="permalink" href="perl5320delta.html#POSIX">#</a><a href="POSIX.html">POSIX</a></h3>

<ul>

<li><p><code>setlocale</code> warning about threaded builds updated to note it does not apply on Perl 5.28.X and later.</p>

</li>
<li><p><code>Posix::SigSet-&gt;new(...)</code> updated to state it throws an error if any of the supplied signals cannot be added to the set.</p>

</li>
</ul>

<p>Additionally, the following selected changes have been made:</p>

<h3 id="Updating-of-links"><a class="permalink" href="perl5320delta.html#Updating-of-links">#</a><a id="Updating"></a>Updating of links</h3>

<ul>

<li><p>Links to the now defunct <a href="https://search.cpan.org">https://search.cpan.org</a> site now point at the equivalent <a href="https://metacpan.org">https://metacpan.org</a> URL. [<a href="https://github.com/Perl/perl5/issues/17393">GH #17393</a>]</p>

</li>
<li><p>The man page for <a href="./ExtUtils::XSSymSet.html">ExtUtils::XSSymSet</a> is now only installed on VMS, which is the only platform the module is installed on. [<a href="https://github.com/Perl/perl5/issues/17424">GH #17424</a>]</p>

</li>
<li><p>URLs have been changed to <code>https://</code> and stale links have been updated.</p>

<p>Where applicable, the URLs in the documentation have been moved from using the <code>http://</code> protocol to <code>https://</code>. This also affects the location of the bug tracker at <a href="https://rt.perl.org">https://rt.perl.org</a>.</p>

</li>
<li><p>Some links to OS/2 libraries, Address Sanitizer and other system tools had gone stale. These have been updated with working links.</p>

</li>
<li><p>Some links to old email addresses on perl5-porters had gone stale. These have been updated with working links.</p>

</li>
</ul>

<h1 id="Diagnostics"><a class="permalink" href="perl5320delta.html#Diagnostics">#</a>Diagnostics</h1>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5320delta.html#New-Diagnostics">#</a><a id="New1"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5320delta.html#New-Errors">#</a><a id="New2"></a>New Errors</h3>

<ul>

<li><p><a href="perldiag.html#Expecting-interpolated-extended-charclass-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Expecting interpolated extended charclass in regex; marked by &lt;-- HERE in m/%s/ </a></p>

<p>This is a replacement for several error messages listed under <a href="perl5320delta.html#Changes-to-Existing-Diagnostics">&quot;Changes to Existing Diagnostics&quot;</a>.</p>

</li>
<li><p><code><a href="perldiag.html#No-digits-found-for-%25s-literal">No digits found for %s literal</a></code></p>

<p>(F) No hexadecimal digits were found following <code>0x</code> or no binary digits were found following <code>0b</code>.</p>

</li>
</ul>

<h3 id="New-Warnings"><a class="permalink" href="perl5320delta.html#New-Warnings">#</a><a id="New3"></a>New Warnings</h3>

<ul>

<li><p><a href="perldiag.html#Code-point-0x%25X-is-not-Unicode%2C-and-not-portable">Code point 0x%X is not Unicode, and not portable</a></p>

<p>This is actually not a new message, but it is now output when the warnings category <code>portable</code> is enabled.</p>

<p>When raised during regular expression pattern compilation, the warning has extra text added at the end marking where precisely in the pattern it occurred.</p>

</li>
<li><p><a href="perldiag.html#Non-hex-character-%27%25c%27-terminates-%5Cx-early.-Resolved-as-%22%25s%22">Non-hex character &#39;%c&#39; terminates \x early. Resolved as &quot;%s&quot;</a></p>

<p>This replaces a warning that was much less specific, and which gave false information. This new warning parallels the similar already-existing one raised for <code>\o{}</code>.</p>

</li>
</ul>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5320delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes1"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p><a href="perldiag.html#Character-following-%22%5Cc%22-must-be-printable-ASCII">Character following &quot;\c&quot; must be printable ASCII</a></p>

<p>...now has extra text added at the end, when raised during regular expression pattern compilation, marking where precisely in the pattern it occurred.</p>

</li>
<li><p><a href="perldiag.html#Use-%22%25s%22-instead-of-%22%25s%22">Use &quot;%s&quot; instead of &quot;%s&quot;</a></p>

<p>...now has extra text added at the end, when raised during regular expression pattern compilation, marking where precisely in the pattern it occurred.</p>

</li>
<li><p><a href="perldiag.html#Sequence-%22%5Cc%7B%22-invalid">Sequence &quot;\c{&quot; invalid</a></p>

<p>...now has extra text added at the end, when raised during regular expression pattern compilation, marking where precisely in the pattern it occurred.</p>

</li>
<li><p><a href="perldiag.html#%22%5Cc%25c%22-is-more-clearly-written-simply-as-%22%25s%22">&quot;\c%c&quot; is more clearly written simply as &quot;%s&quot;</a></p>

<p>...now has extra text added at the end, when raised during regular expression pattern compilation, marking where precisely in the pattern it occurred.</p>

</li>
<li><p><a href="perldiag.html#Non-octal-character-%27%25c%27-terminates-%5Co-early.-Resolved-as-%22%25s%22">Non-octal character &#39;%c&#39; terminates \o early. Resolved as &quot;%s&quot;</a></p>

<p>...now includes the phrase &quot;terminates \o early&quot;, and has extra text added at the end, when raised during regular expression pattern compilation, marking where precisely in the pattern it occurred. In some instances the text of the resolution has been clarified.</p>

</li>
<li><p><a href="perldiag.html#%27%25s%27-resolved-to-%27%5Co%7B%25s%7D%25d%27">&#39;%s&#39; resolved to &#39;\o{%s}%d&#39;</a></p>

<p>As of Perl 5.32, this message is no longer generated. Instead, <a href="perldiag.html#Non-octal-character-%27%25c%27-terminates-%5Co-early.-Resolved-as-%22%25s%22">&quot;Non-octal character &#39;%c&#39; terminates \o early. Resolved as &quot;%s&quot;&quot; in perldiag</a> is used instead.</p>

</li>
<li><p><a href="perldiag.html#Use-of-code-point-0x%25s-is-not-allowed%3B-the-permissible-max-is-0x%25X">Use of code point 0x%s is not allowed; the permissible max is 0x%X</a></p>

<p>Some instances of this message previously output the hex digits <code>A</code>, <code>B</code>, <code>C</code>, <code>D</code>, <code>E</code>, and <code>F</code> in lower case. Now they are all consistently upper case.</p>

</li>
<li><p>The following three diagnostics have been removed, and replaced by <a href="perldiag.html#Expecting-interpolated-extended-charclass-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F"><code>Expecting interpolated extended charclass in regex; marked by &lt;-- HERE in m/%s/</code> </a>: <code>Expecting close paren for nested extended charclass in regex; marked by &lt;-- HERE in m/%s/</code>, <code>Expecting close paren for wrapper for nested extended charclass in regex; marked by &lt;-- HERE in m/%s/</code>, and <code>Expecting &#39;(?flags:(?[...&#39; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</code>.</p>

</li>
<li><p>The <code>Code point 0x%X is not Unicode, and not portable</code> warning removed the line <code>Code points above 0xFFFF_FFFF require larger than a 32 bit word.</code> as code points that large are no longer legal on 32-bit platforms.</p>

</li>
<li><p><a href="perldiag.html#Can%27t-use-global-%25s-in-%25s">Can&#39;t use global %s in %s</a></p>

<p>This error message has been slightly reformatted from the original <code>Can&#39;t use global %s in &quot;%s&quot;</code>, and in particular misleading error messages like <code>Can&#39;t use global $_ in &quot;my&quot;</code> are now rendered as <code>Can&#39;t use global $_ in subroutine signature</code>.</p>

</li>
<li><p><a href="perldiag.html#Constants-from-lexical-variables-potentially-modified-elsewhere-are-no-longer-permitted">Constants from lexical variables potentially modified elsewhere are no longer permitted</a></p>

<p>This error message replaces the former <code>Constants from lexical variables potentially modified elsewhere are deprecated. This will not be allowed in Perl 5.32</code> to reflect the fact that this previously deprecated usage has now been transformed into an exception. The message&#39;s classification has also been updated from D (deprecated) to F (fatal).</p>

<p>See also <a href="perl5320delta.html#Incompatible-Changes">&quot;Incompatible Changes&quot;</a>.</p>

</li>
<li><p><code>\N{} here is restricted to one character</code> is now emitted in the same circumstances where previously <code>\N{} in inverted character class or as a range end-point is restricted to one character</code> was.</p>

<p>This is due to new circumstances having been added in Perl 5.30 that weren&#39;t covered by the earlier wording.</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl5320delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h2 id="perlbug"><a class="permalink" href="perl5320delta.html#perlbug">#</a><a href="perlbug.html">perlbug</a></h2>

<ul>

<li><p>The bug tracker homepage URL now points to GitHub.</p>

</li>
</ul>

<h2 id="streamzip"><a class="permalink" href="perl5320delta.html#streamzip">#</a><a href="streamzip.html">streamzip</a></h2>

<ul>

<li><p>This is a new utility, included as part of an <a href="./IO::Compress::Base.html">IO::Compress::Base</a> upgrade.</p>

<p><a href="streamzip.html">streamzip</a> creates a zip file from stdin. The program will read data from stdin, compress it into a zip container and, by default, write a streamed zip file to stdout.</p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5320delta.html#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1>

<h2 id="Configure"><a class="permalink" href="perl5320delta.html#Configure">#</a><i>Configure</i></h2>

<ul>

<li><p>For clang++, add <code>#include &lt;stdlib.h&gt;</code> to Configure&#39;s probes for <code>futimes</code>, <code>strtoll</code>, <code>strtoul</code>, <code>strtoull</code>, <code>strtouq</code>, otherwise the probes would fail to compile.</p>

</li>
<li><p>Use a compile and run test for <code>lchown</code> to satisfy clang++ which should more reliably detect it.</p>

</li>
<li><p>For C++ compilers, add <code>#include &lt;stdio.h&gt;</code> to Configure&#39;s probes for <code>getpgrp</code> and <code>setpgrp</code> as they use printf and C++ compilers may fail compilation instead of just warning.</p>

</li>
<li><p>Check if the compiler can handle inline attribute.</p>

</li>
<li><p>Check for character data alignment.</p>

</li>
<li><p><i>Configure</i> now correctly handles gcc-10. Previously it was interpreting it as gcc-1 and turned on <code>-fpcc-struct-return</code>.</p>

</li>
<li><p>Perl now no longer probes for <code>d_u32align</code>, defaulting to <code>define</code> on all platforms. This check was error-prone when it was done, which was on 32-bit platforms only. <a href="https://github.com/Perl/perl5/issues/16680">[GH #16680]</a></p>

</li>
<li><p>Documentation and hints for building perl on Z/OS (native EBCDIC) have been updated. This is still a work in progress.</p>

</li>
<li><p>A new probe for <code>malloc_usable_size</code> has been added.</p>

</li>
<li><p>Improvements in <i>Configure</i> to detection in C++ and clang++. Work ongoing by Andy Dougherty. <a href="https://github.com/Perl/perl5/issues/17033">[GH #17033]</a></p>

</li>
<li><p><i>autodoc.pl</i></p>

<p>This tool that regenerates <a href="perlintern.html">perlintern</a> and <a href="perlapi.html">perlapi</a> has been overhauled significantly, restoring consistency in flags used in <i>embed.fnc</i> and <a href="./Devel::PPPort.html">Devel::PPPort</a> and allowing removal of many redundant <code>=for apidoc</code> entries in code.</p>

</li>
<li><p>The <code>ECHO</code> macro is now defined. This is used in a <code>dtrace</code> rule that was originally changed for FreeBSD, and the FreeBSD make apparently predefines it. The Solaris make does not predefine <code>ECHO</code> which broke this rule on Solaris. <a href="https://github.com/Perl/perl5/issues/17057">[GH #17057]</a></p>

</li>
<li><p>Bison versions 3.1 through 3.4 are now supported.</p>

</li>
</ul>

<h1 id="Testing"><a class="permalink" href="perl5320delta.html#Testing">#</a>Testing</h1>

<p>Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:</p>

<ul>

<li><p><i>t/run/switches.t</i> no longer uses (and re-uses) the <i>tmpinplace/</i> directory under <i>t/</i>. This may prevent spurious failures. [<a href="https://github.com/Perl/perl5/issues/17424">GH #17424</a>]</p>

</li>
<li><p>Various bugs in <code>POSIX::mbtowc</code> were fixed. Potential races with other threads are now avoided, and previously the returned wide character could well be garbage.</p>

</li>
<li><p>Various bugs in <code>POSIX::wctomb</code> were fixed. Potential races with other threads are now avoided, and previously it would segfault if the string parameter was shared or hadn&#39;t been pre-allocated with a string of sufficient length to hold the result.</p>

</li>
<li><p>Certain test output of scalars containing control characters and Unicode has been fixed on EBCDIC.</p>

</li>
<li><p><i>t/charset_tools.pl</i>: Avoid some work on ASCII platforms.</p>

</li>
<li><p><i>t/re/regexp.t</i>: Speed up many regex tests on ASCII platform</p>

</li>
<li><p><i>t/re/pat.t</i>: Skip tests that don&#39;t work on EBCDIC.</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5320delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="Discontinued-Platforms"><a class="permalink" href="perl5320delta.html#Discontinued-Platforms">#</a><a id="Discontinued"></a>Discontinued Platforms</h2>

<dl>

<dt id="Windows-CE"><a class="permalink" href="perl5320delta.html#Windows-CE">#</a><a id="Windows1"></a>Windows CE</dt>
<dd>

<p>Support for building perl on Windows CE has now been removed.</p>

</dd>
</dl>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5320delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<dl>

<dt id="Linux"><a class="permalink" href="perl5320delta.html#Linux">#</a>Linux</dt>
<dd>

<p><code>cc</code> will be used to populate <code>plibpth</code> if <code>cc</code> is <code>clang</code>. <a href="https://github.com/Perl/perl5/issues/17043">[GH #17043]</a></p>

</dd>
<dt id="NetBSD-8.0"><a class="permalink" href="perl5320delta.html#NetBSD-8.0">#</a><a id="NetBSD"></a>NetBSD 8.0</dt>
<dd>

<p>Fix compilation of Perl on NetBSD 8.0 with g++. [<a href="https://github.com/Perl/perl5/issues/17381">GH #17381</a>]</p>

</dd>
<dt id="Windows"><a class="permalink" href="perl5320delta.html#Windows">#</a>Windows</dt>
<dd>

<ul>

<li><p>The configuration for <code>ccflags</code> and <code>optimize</code> are now separate, as with POSIX platforms. [<a href="https://github.com/Perl/perl5/issues/17156">GH #17156</a>]</p>

</li>
<li><p>Support for building perl with Visual C++ 6.0 has now been removed.</p>

</li>
<li><p>The locale tests could crash on Win32 due to a Windows bug, and separately due to the CRT throwing an exception if the locale name wasn&#39;t validly encoded in the current code page.</p>

<p>For the second we now decode the locale name ourselves, and always decode it as UTF-8. <a href="https://github.com/Perl/perl5/issues/16922">[GH #16922]</a></p>

</li>
<li><p><i>t/op/magic.t</i> could fail if environment variables starting with <code>FOO</code> already existed.</p>

</li>
<li><p>MYMALLOC (PERL_MALLOC) build has been fixed.</p>

</li>
</ul>

</dd>
<dt id="Solaris"><a class="permalink" href="perl5320delta.html#Solaris">#</a>Solaris</dt>
<dd>

<ul>

<li><p><code>Configure</code> will now find recent versions of the Oracle Developer Studio compiler, which are found under <code>/opt/developerstudio*</code>.</p>

</li>
<li><p><code>Configure</code> now uses the detected types for <code>gethostby*</code> functions, allowing Perl to once again compile on certain configurations of Solaris.</p>

</li>
</ul>

</dd>
<dt id="VMS"><a class="permalink" href="perl5320delta.html#VMS">#</a>VMS</dt>
<dd>

<ul>

<li><p>With the release of the patch kit C99 V2.0, VSI has provided support for a number of previously-missing C99 features. On systems with that patch kit installed, Perl&#39;s configuration process will now detect the presence of the header <code>stdint.h</code> and the following functions: <code>fpclassify</code>, <code>isblank</code>, <code>isless</code>, <code>llrint</code>, <code>llrintl</code>, <code>llround</code>, <code>llroundl</code>, <code>nearbyint</code>, <code>round</code>, <code>scalbn</code>, and <code>scalbnl</code>.</p>

</li>
<li><p><code>-Duse64bitint</code> is now the default on VMS.</p>

</li>
</ul>

</dd>
<dt id="z/OS"><a class="permalink" href="perl5320delta.html#z/OS">#</a><a id="z"></a><a id="z-OS"></a>z/OS</dt>
<dd>

<p>Perl 5.32 has been tested on z/OS 2.4, with the following caveats:</p>

<ul>

<li><p>Only static builds (the default) build reliably</p>

</li>
<li><p>When using locales, z/OS does not handle the <code>LC_MESSAGES</code> category properly, so when compiling perl, you should add the following to your <i>Configure</i> options</p>

<pre><code class="plaintext">./Configure &lt;other options&gt; -Accflags=-DNO_LOCALE_MESSAGES</code></pre>

</li>
<li><p>z/OS does not support locales with threads, so when compiling a threaded perl, you should add the following to your <i>Configure</i> options</p>

<pre><code class="plaintext">./Configure &lt;other Configure options&gt; -Accflags=-DNO_LOCALE</code></pre>

</li>
<li><p>Some CPAN modules that are shipped with perl fail at least one of their self-tests. These are: Archive::Tar, Config::Perl::V, CPAN::Meta, CPAN::Meta::YAML, Digest::MD5, Digest::SHA, Encode, ExtUtils::MakeMaker, ExtUtils::Manifest, HTTP::Tiny, IO::Compress, IPC::Cmd, JSON::PP, libnet, MIME::Base64, Module::Metadata, PerlIO::via-QuotedPrint, Pod::Checker, podlators, Pod::Simple, Socket, and Test::Harness.</p>

<p>The causes of the failures range from the self-test itself is flawed, and the module actually works fine, up to the module doesn&#39;t work at all on EBCDIC platforms.</p>

</li>
</ul>

</dd>
</dl>

<h1 id="Internal-Changes"><a class="permalink" href="perl5320delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<ul>

<li><p><code>savepvn</code>&#39;s len parameter is now a <code>Size_t</code> instead of an <code>I32</code> since we can handle longer strings than 31 bits.</p>

</li>
<li><p>The lexer (<code>Perl_yylex()</code> in <i>toke.c</i>) was previously a single 4100-line function, relying heavily on <code>goto</code> and a lot of widely-scoped local variables to do its work. It has now been pulled apart into a few dozen smaller static functions; the largest remaining chunk (<code>yyl_word_or_keyword()</code>) is a little over 900 lines, and consists of a single <code>switch</code> statement, all of whose <code>case</code> groups are independent. This should be much easier to understand and maintain.</p>

</li>
<li><p>The OS-level signal handlers and type (Sighandler_t) used by the perl core were declared as having three parameters, but the OS was always told to call them with one argument. This has been fixed by declaring them to have one parameter. See the merge commit <code>v5.31.5-346-g116e19abbf</code> for full details.</p>

</li>
<li><p>The code that handles <code>tr///</code> has been extensively revised, fixing various bugs, especially when the source and/or replacement strings contain characters whose code points are above 255. Some of the bugs were undocumented, one being that under some circumstances (but not all) with <code>/s</code>, the squeezing was done based on the source, rather than the replacement. A documented bug that got fixed was <a href="https://github.com/Perl/perl5/issues/14777">[GH #14777]</a>.</p>

</li>
<li><p>A new macro for XS writers dealing with UTF-8-encoded Unicode strings has been created <a href="perlapi.html#UTF8_CHK_SKIP">&quot;<code>UTF8_CHK_SKIP</code>&quot; in perlapi</a> that is safer in the face of malformed UTF-8 input than <a href="perlapi.html#UTF8_SKIP">&quot;<code>UTF8_SKIP</code>&quot; in perlapi</a> (but not as safe as <a href="perlapi.html#UTF8_SAFE_SKIP">&quot;<code>UTF8_SAFE_SKIP</code>&quot; in perlapi</a>). It won&#39;t read past a NUL character. It has been backported in <a href="./Devel::PPPort.html">Devel::PPPort</a> 3.55 and later.</p>

</li>
<li><p>Added the <code>PL_curstackinfo-&gt;si_cxsubix</code> field. This records the stack index of the most recently pushed sub/format/eval context. It is set and restored automatically by <code>cx_pushsub()</code>, <code>cx_popsub()</code> etc., but would need to be manually managed if you do any unusual manipulation of the context stack.</p>

</li>
<li><p>Various macros dealing with character type classification and changing case where the input is encoded in UTF-8 now require an extra parameter to prevent potential reads beyond the end of the buffer. Use of these has generated a deprecation warning since Perl 5.26. Details are in <a href="perldeprecation.html#In-XS-code%2C-use-of-various-macros-dealing-with-UTF-8.">&quot;In XS code, use of various macros dealing with UTF-8.&quot; in perldeprecation</a></p>

</li>
<li><p>A new parser function <a href="perlapi.html#parse_subsignature">parse_subsignature()</a> allows a keyword plugin to parse a subroutine signature while <code>use feature &#39;signatures&#39;</code> is in effect. This allows custom keywords to implement semantics similar to regular <code>sub</code> declarations that include signatures. <a href="https://github.com/Perl/perl5/issues/16261">[GH #16261]</a></p>

</li>
<li><p>Since on some platforms we need to hold a mutex when temporarily switching locales, new macros (<code>STORE_LC_NUMERIC_SET_TO_NEEDED_IN</code>, <code>WITH_LC_NUMERIC_SET_TO_NEEDED</code> and <code>WITH_LC_NUMERIC_SET_TO_NEEDED_IN</code>) have been added to make it easier to do this safely and efficiently as part of <a href="https://github.com/Perl/perl5/issues/17034">[GH #17034]</a>.</p>

</li>
<li><p>The memory bookkeeping overhead for allocating an OP structure has been reduced by 8 bytes per OP on 64-bit systems.</p>

</li>
<li><p><a href="perlapi.html#eval_pv">eval_pv()</a> no longer stringifies the exception when <code>[GH #17035]|https://github.com/Perl/perl5/issues/17035</code>]</p>

</li>
<li><p>The PERL_DESTRUCT_LEVEL environment variable was formerly only honoured on perl binaries built with DEBUGGING support. It is now checked on all perl builds. Its normal use is to force perl to individually free every block of memory which it has allocated before exiting, which is useful when using automated leak detection tools such as valgrind.</p>

</li>
<li><p>The API eval_sv() now accepts a <code>G_RETHROW</code> flag. If this flag is set and an exception is thrown while compiling or executing the supplied code, it will be rethrown, and eval_sv() will not return. <a href="https://github.com/Perl/perl5/issues/17036">[GH #17036]</a></p>

</li>
<li><p>As part of the fix for <a href="https://github.com/Perl/perl5/issues/1537">[GH #1537]</a> perl_parse() now returns non-zero if exit(0) is called in a <code>BEGIN</code>, <code>UNITCHECK</code> or <code>CHECK</code> block.</p>

</li>
<li><p>Most functions which recursively walked an op tree during compilation have been made non-recursive. This avoids SEGVs from stack overflow when the op tree is deeply nested, such as <code>$n == 1 ? &quot;one&quot; : $n == 2 ? &quot;two&quot; : ....</code> (especially in code which is auto-generated).</p>

<p>This is particularly noticeable where the code is compiled within a separate thread, as threads tend to have small stacks by default.</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5320delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<ul>

<li><p>Previously <a href="perlfunc.html#require">&quot;require&quot; in perlfunc</a> would only treat the special built-in SV <code>&amp;PL_sv_undef</code> as a value in <code>%INC</code> as if a previous <code>require</code> has failed, treating other undefined SVs as if the previous <code>require</code> has succeeded. This could cause unexpected success from <code>require</code> e.g., on <code>local %INC = %INC;</code>. This has been fixed. [<a href="https://github.com/Perl/perl5/issues/17428">GH #17428</a>]</p>

</li>
<li><p><code>(?{...})</code> eval groups in regular expressions no longer unintentionally trigger &quot;EVAL without pos change exceeded limit in regex&quot; [<a href="https://github.com/Perl/perl5/issues/17490">GH #17490</a>].</p>

</li>
<li><p><code>(?[...])</code> extended bracketed character classes do not wrongly raise an error on some cases where a previously-compiled such class is interpolated into another. The heuristics previously used have been replaced by a reliable method, and hence the diagnostics generated have changed. See <a href="perl5320delta.html#Diagnostics">&quot;Diagnostics&quot;</a>.</p>

</li>
<li><p>The debug display (say by specifying <code>-Dr</code> or <span style="white-space: nowrap;"><code>use re</code></span> (with appropriate options) of compiled Unicode property wildcard subpatterns no longer has extraneous output.</p>

</li>
<li><p>Fix an assertion failure in the regular expression engine. [<a href="https://github.com/Perl/perl5/issues/17372">GH #17372</a>]</p>

</li>
<li><p>Fix coredump in pp_hot.c after <code>B::UNOP_AUX::aux_list()</code>. [<a href="https://github.com/Perl/perl5/issues/17301">GH #17301</a>]</p>

</li>
<li><p>Loading IO is now threadsafe. [<a href="https://github.com/Perl/perl5/issues/14816">GH #14816</a>]</p>

</li>
<li><p><code>\p{user-defined}</code> overrides official Unicode [<a href="https://github.com/Perl/perl5/issues/17025">GH #17025</a>]</p>

<p>Prior to this patch, the override was only sometimes in effect.</p>

</li>
<li><p>Properly handle filled <code>/il</code> regnodes and multi-char folds</p>

</li>
<li><p>Compilation error during make minitest [<a href="https://github.com/Perl/perl5/issues/17293">GH #17293</a>]</p>

</li>
<li><p>Move the implementation of <code>%-</code>, <code>%+</code> into core.</p>

</li>
<li><p>Read beyond buffer in <code>grok_inf_nan</code> [<a href="https://github.com/Perl/perl5/issues/17370">GH #17370</a>]</p>

</li>
<li><p>Workaround glibc bug with <code>LC_MESSAGES</code> [<a href="https://github.com/Perl/perl5/issues/17081">GH #17081</a>]</p>

</li>
<li><p><code>printf()</code> or <code>sprintf()</code> with the <code>%n</code> format could cause a panic on debugging builds, or report an incorrectly cached length value when producing <code>SVfUTF8</code> flagged strings. [<a href="https://github.com/Perl/perl5/issues/17221">GH #17221</a>]</p>

</li>
<li><p>The tokenizer has been extensively refactored. [<a href="https://github.com/Perl/perl5/issues/17241">GH #17241</a>] [<a href="https://github.com/Perl/perl5/issues/17189">GH #17189</a>]</p>

</li>
<li><p><code>use strict &quot;subs&quot;</code> is now enforced for bareword constants optimized into a <code>multiconcat</code> operator. [<a href="https://github.com/Perl/perl5/issues/17254">GH #17254</a>]</p>

</li>
<li><p>A memory leak in regular expression patterns has been fixed. [<a href="https://github.com/Perl/perl5/issues/17218">GH #17218</a>]</p>

</li>
<li><p>Perl no longer treats strings starting with &quot;0x&quot; or &quot;0b&quot; as hex or binary numbers respectively when converting a string to a number. This reverts a change in behaviour inadvertently introduced in perl 5.30.0 intended to improve precision when converting a string to a floating point number. <a href="https://github.com/Perl/perl5/issues/17062">[GH #17062]</a></p>

</li>
<li><p>Matching a non-<code>SVf_UTF8</code> string against a regular expression containing unicode literals could leak a SV on each match attempt. <a href="https://github.com/Perl/perl5/issues/17140">[GH #17140]</a></p>

</li>
<li><p>Overloads for octal and binary floating point literals were always passed a string with a <code>0x</code> prefix instead of the appropriate <code>0</code> or <code>[GH #14791]|https://github.com/Perl/perl5/issues/14791</code>]</p>

</li>
<li><p><code>$@ = 100; die;</code> now correctly propagates the 100 as an exception instead of ignoring it. <a href="https://github.com/Perl/perl5/issues/17098">[GH #17098]</a></p>

</li>
<li><p><code>[GH #17108]|https://github.com/Perl/perl5/issues/17108</code>]</p>

</li>
<li><p>Exceptions thrown while <code>$@</code> is read-only could result in infinite recursion as perl tried to update <code>$@</code>, which throws another exception, resulting in a stack overflow. Perl now replaces <code>$@</code> with a copy if it&#39;s not a simple writable SV. <a href="https://github.com/Perl/perl5/issues/17083">[GH #17083]</a></p>

</li>
<li><p>Setting <code>$)</code> now properly sets supplementary group ids if you have the necessary privileges. <a href="https://github.com/Perl/perl5/issues/17031">[GH #17031]</a></p>

</li>
<li><p>close() on a pipe now preemptively clears the PerlIO object from the IO SV. This prevents a second attempt to close the already closed PerlIO object if a signal handler calls die() or exit() while close() is waiting for the child process to complete. <a href="https://github.com/Perl/perl5/issues/13929">[GH #13929]</a></p>

</li>
<li><p><code>sprintf(&quot;%.*a&quot;, -10000, $x)</code> would cause a buffer overflow due to mishandling of the negative precision value. <a href="https://github.com/Perl/perl5/issues/16942">[GH #16942]</a></p>

</li>
<li><p>scalar() on a reference could cause an erroneous assertion failure during compilation. <a href="https://github.com/Perl/perl5/issues/16969">[GH #16969]</a></p>

</li>
<li><p><code>%{^CAPTURE_ALL}</code> is now an alias to <code>%-</code> as documented, rather than incorrectly an alias for <code>[GH #16105]|https://github.com/Perl/perl5/issues/16105</code>]</p>

</li>
<li><p><code>%{^CAPTURE}</code> didn&#39;t work if <code>@{^CAPTURE}</code> was mentioned first. Similarly for <code>%{^CAPTURE_ALL}</code> and <code>@{^CAPTURE_ALL}</code>, though <code>[GH #17045]|https://github.com/Perl/perl5/issues/17045</code>]</p>

</li>
<li><p>Extraordinarily large (over 2GB) floating point format widths could cause an integer overflow in the underlying call to snprintf(), resulting in an assertion. Formatted floating point widths are now limited to the range of int, the return value of snprintf(). [<a href="https://github.com/Perl/perl5/issues/16881">#16881</a>]</p>

</li>
<li><p>Parsing the following constructs within a sub-parse (such as with <code>&quot;${code here}&quot;</code> or <code>s/.../code here/e</code>) has changed to match how they&#39;re parsed normally:</p>

<ul>

<li><p><code>print $fh ...</code> no longer produces a syntax error.</p>

</li>
<li><p>Code like <code>s/.../ ${time} /e</code> now properly produces an &quot;Ambiguous use of ${time} resolved to $time at ...&quot; warning when warnings are enabled.</p>

</li>
<li><p><code>@x {&quot;a&quot;}</code> (with the space) in a sub-parse now properly produces a &quot;better written as&quot; warning when warnings are enabled.</p>

</li>
<li><p>Attributes can now be used in a sub-parse. <a href="https://github.com/Perl/perl5/issues/16847">[GH #16847]</a></p>

</li>
</ul>

</li>
<li><p>Incomplete hex and binary literals like <code>0x</code> and <code>0b</code> are now treated as if the <code>x</code> or <code>b</code> is part of the next token. [<a href="https://github.com/Perl/perl5/issues/17010">#17010</a>]</p>

</li>
<li><p>A spurious <code>)</code> in a subparse, such as in <code>s/.../code here/e</code> or <code>&quot;...${code here}&quot;</code>, no longer confuses the parser.</p>

<p>Previously a subparse was bracketed with generated <code>(</code> and <code>)</code> tokens, so a spurious <code>)</code> would close the construct without doing the normal subparse clean up, confusing the parser and possible causing an assertion failure.</p>

<p>Such constructs are now surrounded by artificial tokens that can&#39;t be included in the source. <a href="https://github.com/Perl/perl5/issues/15814">[GH #15814]</a></p>

</li>
<li><p>Reference assignment of a sub, such as <code>\&amp;foo = \&amp;bar;</code>, silently did nothing in the <code>[GH #16987]|https://github.com/Perl/perl5/issues/16987</code>]</p>

</li>
<li><p>sv_gets() now recovers better if the target SV is modified by a signal handler. <a href="https://github.com/Perl/perl5/issues/16960">[GH #16960]</a></p>

</li>
<li><p><code>readline @foo</code> now evaluates <code>@foo</code> in scalar context. Previously it would be evaluated in list context, and since readline() pops only one argument from the stack, the stack could underflow, or be left with unexpected values on the stack. <a href="https://github.com/Perl/perl5/issues/16929">[GH #16929]</a></p>

</li>
<li><p>Parsing incomplete hex or binary literals was changed in 5.31.1 to treat such a literal as just the 0, leaving the following <code>x</code> or <code>b</code> to be parsed as part of the next token. This could lead to some silent changes in behaviour, so now incomplete hex or binary literals produce a fatal error. <a href="https://github.com/Perl/perl5/issues/17010">[GH #17010]</a></p>

</li>
<li><p>eval_pv()&#39;s <i>croak_on_error</i> flag will now throw even if the exception is a false overloaded value. <a href="https://github.com/Perl/perl5/issues/17036">[GH #17036]</a></p>

</li>
<li><p><code>INIT</code> blocks and the program itself are no longer run if exit(0) is called within a <code>BEGIN</code>, <code>UNITCHECK</code> or <code>CHECK</code> block. <a href="https://github.com/Perl/perl5/issues/1537">[GH #1537]</a></p>

</li>
<li><p><code>open my $fh, &quot;&gt;&gt;+&quot;, undef</code> now opens the temporary file in append mode: writes will seek to the end of file before writing. <a href="https://github.com/Perl/perl5/issues/17058">[GH #17058]</a></p>

</li>
<li><p>Fixed a SEGV when searching for the source of an uninitialized value warning on an op whose subtree includes an OP_MULTIDEREF. <a href="https://github.com/Perl/perl5/issues/17088">[GH #17088]</a></p>

</li>
</ul>

<h1 id="Obituary"><a class="permalink" href="perl5320delta.html#Obituary">#</a>Obituary</h1>

<p>Jeff Goff (JGOFF or DrForr), an integral part of the Perl and Raku communities and a dear friend to all of us, has passed away on March 13th, 2020. DrForr was a prominent member of the communities, attending and speaking at countless events, contributing to numerous projects, and assisting and helping in any way he could.</p>

<p>His passing leaves a hole in our hearts and in our communities and he will be sorely missed.</p>

<h1 id="Acknowledgements"><a class="permalink" href="perl5320delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl 5.32.0 represents approximately 13 months of development since Perl 5.30.0 and contains approximately 220,000 lines of changes across 1,800 files from 89 authors.</p>

<p>Excluding auto-generated files, documentation and release tools, there were approximately 140,000 lines of changes to 880 .pm, .t, .c and .h files.</p>

<p>Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.32.0:</p>

<p>Aaron Crane, Alberto Simões, Alexandr Savca, Andreas König, Andrew Fresh, Andy Dougherty, Ask Bjørn Hansen, Atsushi Sugawara, Bernhard M. Wiedemann, brian d foy, Bryan Stenson, Chad Granum, Chase Whitener, Chris &#39;BinGOs&#39; Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Book, Daniel Dragan, Dan Kogai, Dave Cross, Dave Rolsky, David Cantrell, David Mitchell, Dominic Hargreaves, E. Choroba, Felipe Gasper, Florian Weimer, Graham Knop, Håkon Hægland, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose Shogo, James E Keenan, Jason McIntosh, Jerome Duval, Johan Vromans, John Lightsey, John Paul Adrian Glaubitz, Kang-min Liu, Karen Etheridge, Karl Williamson, Leon Timmermans, Manuel Mausz, Marc Green, Matthew Horsfall, Matt Turner, Max Maischein, Michael Haardt, Nicholas Clark, Nicolas R., Niko Tyni, Pali, Paul Evans, Paul Johnson, Paul Marquess, Peter Eisentraut, Peter John Acklam, Peter Oliver, Petr Písař, Renee Baecker, Ricardo Signes, Richard Leach, Russ Allbery, Samuel Smith, Santtu Ojanperä, Sawyer X, Sergey Aleynikov, Sergiy Borodych, Shirakata Kentaro, Shlomi Fish, Sisyphus, Slaven Rezic, Smylers, Stefan Seifert, Steve Hay, Steve Peters, Svyatoslav, Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tony Cook, Unicode Consortium, VanL, Vickenty Fesunov, Vitali Peil, Yves Orton, Zefram.</p>

<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<p>For a more complete list of all of Perl&#39;s historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5320delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the perl bug database at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a>, the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. Be sure to trim your bug down to a tiny but sufficient test case.</p>

<p>If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker, then see <a href="perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">&quot;SECURITY VULNERABILITY CONTACT INFORMATION&quot; in perlsec</a> for details of how to report the issue.</p>

<h1 id="Give-Thanks"><a class="permalink" href="perl5320delta.html#Give-Thanks">#</a><a id="Give"></a>Give Thanks</h1>

<p>If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the <code>perlthanks</code> program:</p>

<pre><code class="plaintext">perlthanks</code></pre>

<p>This will send an email to the Perl 5 Porters list with your show of thanks.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5320delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
